home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / xdme_1.84_src.lha / XDME / Lib / include / xdme_base.h < prev   
Encoding:
C/C++ Source or Header  |  1994-12-04  |  1.7 KB  |  71 lines

  1.  
  2. #include "Definitions.h"
  3.  
  4. #ifndef   EXEC_TYPES_H
  5. #include <exec/types.h>
  6. #endif /* EXEC_TYPES_H */
  7.  
  8. #ifndef   STDLIB_H
  9. #include <stdlib.h>
  10. #endif /* STDLIB_H */
  11.  
  12. #ifndef   STRING_H
  13. #include <string.h>
  14. #endif /* STRING_H */
  15.  
  16. #define MAXLINELEN 256
  17. #define PATHSIZE   256
  18.  
  19. Prototype char    *strrep (char *old, const char *new);
  20. Prototype char    *ltostr (long);
  21.  
  22. /* file support functions */
  23. #ifdef _STDIO_H
  24. Prototype int     std_writefile (int (*writefunc)(FILE *, APTR), APTR);
  25. #endif
  26. Prototype UBYTE  pattern[];
  27. Prototype void     splitpath (char *, char *, char *);
  28. Prototype int     getappname (char *, int);
  29. #ifdef DOS_DOS_H
  30. Prototype BOOL     getpathto (BPTR, char *, char *);
  31. #endif
  32.  
  33. Prototype void format_string (char *, const char *);
  34.  
  35. /* command interface */
  36. Prototype UBYTE *av[];
  37. Prototype UBYTE  tmp_buffer[MAXLINELEN];
  38. Prototype void     error (char * fmt, ...);
  39. Prototype int     buffered_do_command (const char *);
  40. Prototype int     do_command         (char *);
  41. Prototype void     set_Abortion (int);
  42. Prototype int     is_Aborted   (void);
  43. Prototype void     no_Memory    (void);
  44. Prototype int     breakcheck   (void);
  45. Prototype void    clearbreaks   (void);
  46. Prototype char    *GetTypedVar (const char *, int *);
  47. Prototype int     SetTypedVar (const char *, const char *, int );
  48.  
  49. #define RET_FAIL    0
  50. #define RET_SUCC    1
  51.  
  52. #define VAR_NEX     0
  53. #define VAR_SV        1
  54.  
  55. #define NEW(x) ((x) = malloc(sizeof (*(x))))
  56. #define DISPOSE(x) free(x)
  57.  
  58.  
  59. #ifdef INTUITION_INTUITION_H
  60. extern struct Window *active_window    (void);
  61. extern void          closesharedwindow (struct Window *);
  62. #endif
  63.  
  64. #define SET_ABORTION set_Abortion
  65. #define IS_ABORTED   is_Aborted
  66. #define nomemory()   no_Memory()
  67.  
  68. extern int NodeNodeComparison();
  69. extern int NodeStringComparison();
  70.  
  71.